<?php

class QueryResultDataset {

	public $title;
	private $values = array();

	public function __construct($title=null) {
		$this->title = $title;
	}

	public function add($name, $value) {
		$this->values[$name] = $value;
	}

	public function getValues() {
		return $this->values;
	}

	public function toString() {
		$toReturn = "\tDataset: " . $this->title . "\n";;
		foreach ($this->values as $name=>$value) {
			$toReturn .= "\t\t".$name."=".$value."\n";
		}
		return $toReturn;
	}

}

?>